<?php
/* @var $this SolutiondetailController */
/* @var $dataProvider CActiveDataProvider */
$baseUrl = Yii::app()->request->baseUrl;
$this->breadcrumbs=array(
	'Solutiondetails',
);

$this->menu=array(
	array('label'=>'New detail page', 'url'=>array('create')),
);
?>

<h1>Solution details</h1>
<div class="list-solution-detail">
    <table>
        <thead>
            <td>ID</td>
            <td>Solution</td>
            <td>Page title</td>
            <td>Position</td>
            <td>Operations</td>
        </thead>
        <tbody>
        <?php
        $data = Solutiondetail::model()->findAll();
        $count = 0;
        foreach ($data as $value) {
            if($count%2==0)
                echo "<tr class='even'>";
            else                echo "<tr>";
            echo '<td>'.$value->id.'</td><td>'.$value->solution->name.'</td><td>'.$value->title.'</td><td>'.$value->position.'</td><td>'.CHtml::link(CHtml::image($baseUrl.'/images/edit.png','Update'),$this->createUrl('update',array('id'=>$value->id))).'&nbsp&nbsp&nbsp  &nbsp&nbsp&nbsp'.CHtml::link(CHtml::image($baseUrl.'/images/delete-button.png','Delete'),$this->createUrl('delete',array('id'=>$value->id))).' </td>';
            echo '</tr>';
            $count++;
        }
        ?>
        </tbody>
    </table>
</div>
